home *** CD-ROM | disk | FTP | other *** search
/ 100 Plus Great Games 2 / 100PLUSV2.BIN / games / Darts(Clock).dxr / Generic GFX_7_game end statistics.ls < prev    next >
Encoding:
Text File  |  2002-01-25  |  743 b   |  29 lines

  1. global gRoundScore
  2.  
  3. on beginSprite me
  4.   xtc = 0
  5.   repeat with i = 1 to gRoundScore.count
  6.     xtc = xtc + gRoundScore[i]
  7.   end repeat
  8.   member("total score").text = "Total Score:" && string(xtc) && "pts"
  9.   if (xtc >= 0) and (xtc <= 100) then
  10.     puppetSound(5, "lose")
  11.     member("job done").text = "Not Bad!"
  12.   else
  13.     if (xtc >= 101) and (xtc <= 200) then
  14.       puppetSound(5, "lose")
  15.       member("job done").text = "Pretty Good!"
  16.     else
  17.       if (xtc >= 201) and (xtc <= 300) then
  18.         puppetSound(5, "win")
  19.         member("job done").text = "Great Job!"
  20.       else
  21.         if xtc >= 300 then
  22.           puppetSound(5, "win")
  23.           member("job done").text = "Excellent Showing!"
  24.         end if
  25.       end if
  26.     end if
  27.   end if
  28. end
  29.